﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Raona.Code.Model;

namespace Raona.Code.Contracts.EventArguments
{
    [Serializable]
    public class ProgressResultEventArgs : EventArgs
    {
        public ProgressResultEventArgs(Dictionary<string, Namespace> namespaces)
        {
            this.Namespaces = namespaces;
        }

        public ProgressResultEventArgs(Exception error)
        {
            this.Error = error;
        }

        // The code inspection result is a collection of namespaces
        // containing the interfaces found
        public Dictionary<string, Namespace> Namespaces { get; private set; }
        // The code inspection result is an error
        public Exception Error { get; private set; }
    }
}
